package com.xuan.factory.staticfactory;
public class Phone implements Device {
    // 构造器私有
    private Phone() {}

    // 静态工厂方法
    public static Device createPhone() {
        return new Phone();
    }
    @Override
    public void produce() {
        System.out.println("手机");
    }
}
